package repository

import (
	"context"
	"time"
)

type WallpaperCategory struct {
	ID         int64     `json:"id"`
	WpID       int64     `json:"wpid"`
	Category   string    `json:"category"`
	CreateTime time.Time `json:"create_time"`
	UpdateTime time.Time `json:"update_time"`
}

type WallpaperCategoryStore struct {
}

func (m *WallpaperCategoryStore) tableName() string {
	return "wallpaper_category"
}

func (m *WallpaperCategoryStore) Create(ctx context.Context, category WallpaperCategory) error {
	return db.Create(category).Error
}
